package com.fastloan.safe.mgt.sys.service;

import com.fastloan.safe.mgt.sys.model.CmChinaCity;
import com.fastloan.safe.mgt.sys.model.vo.AddressFiled;
import com.fastloan.safe.mgt.sys.model.vo.CmChinaCityVo;
import com.kawins.base.BaseService;

/**
 * @author rankai
 *         createTime 2017-11-2017/11/8 10:27
 */
public interface CmChinaCityService extends BaseService<CmChinaCity> {
    /**
     * 根据传入的省市区获得对应的ID
     *
     * @param addressFiled
     * @return
     */
    Integer selectIdByAdd(AddressFiled addressFiled);

    /**
     * 根据传入的省市区获得对应的全部ID
     *
     * @param addressFiled
     * @return
     */
    AddressFiled selectAllIdByAdd(AddressFiled addressFiled);

    /**
     * 根据ID获取区域树
     *
     * @param areaId
     * @return
     */
    CmChinaCityVo selectIdByTree(Integer areaId);
}
